package work2.phone;

public class InternetMenu extends PhoneMenu implements InternetService{
    private int flow;
    private PhoneCard card;

    public PhoneCard getCard() {
        return card;
    }

    public int getFlow() {
        return flow;
    }

    public void setFlow(int flow) {
        this.flow = flow;
    }

    @Override
    void showInfo() {
        System.out.println("当前套餐   上网流量:" + flow + "  每月消费:" + fee);
    }

    @Override
    public void setInfo(int flow, PhoneCard card) {
        this.flow = flow;
        this.card = card;
    }
}
